const Mock = require("mockjs");
const { tabs, image } = Mock.mock({
  "tabs|6": [
    {
      "count|500-1500": 1,
      title: "@ctitle(2)",
      "children|5-10": [
        {
          title: "@ctitle",
        },
      ],
    },
  ],
  image: "@image(375x200, red, banner)",
});

module.exports = (app) => {
  app.get('/tabs', (req, res) => {
    res.send({
      code: 200,
      data: tabs
    })
  })

   app.get('/image', (req, res) => {
    res.send({
      code: 200,
      data: image
    })
  })
};
